<!DOCTYPE html>
<html lang="en">
<script src="/public/usersJsonp"></script>
<script>
    if (!window.isLogin) {
        location.href = '/html/login.html'
    }
    // console.log(window.isLogin);
    // console.log(window.isLogin);
    // console.log(window.user);
</script>

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="../css/detail-add.css">
    <link rel="stylesheet" href="../bootsrap/bootstrap-3.3.7-dist/css/bootstrap.min.css">
    <link rel="stylesheet" href="../css/index.css">
    <script src="../jQuery/jQuery.min.js"></script>
    <script src="../bootsrap/bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>
    <link rel="stylesheet" href="../nprogress/nprogress.css">
    <script src="../art-template/template-web.js"></script>
    <script src="../nprogress/nprogress.js"></script>
    <title>QuestionBamk</title>
</head>

<body>
    <script>
        NProgress.start()
    </script>


    <!-- 小屏幕 -->
    <nav class="mini">
        <div class="miniTop ">
            <a href="/html/index.html" class="back"><span class="glyphicon glyphicon-chevron-left"></span>返回</a> QuestionBank
            <!-- <a href="#" class="back"></span>登录</a> QuestionBank -->
        </div>
        <div class="miniDown">




        </div>
        <div class="btn-group ">
            <button type="button" class="btn " onclick="jump('/html/user-index.html')">
          个人信息
        </button>

        </div>
        <div class="btn-group ">
            <button type="button" class="btn " onclick="jump('/html/user-list.html')">
          我的题解
        </button>

        </div>
        <div class="btn-group ">
            <button type="button" class="btn now" onclick="jump('/html/detail-add.html')">
          发布题解
        </button>

        </div>



        <!-- /.container-fluid -->
    </nav>
    <!-- 大屏幕 -->
    <nav class="navbar navbar-default  ">
        <div class="container-fluid auto">
            <!-- Brand and toggle get grouped for better mobile display -->
            <div class="navbar-header">


                <a class="navbar-brand" href="/html/index.html">QuestionBank</a>
            </div>

            <!-- Collect the nav links, forms, and other content for toggling -->
            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                <ul class="nav navbar-nav">
                    <!-- 选中状态action -->
                    <li><a href="/html/index.html">题库列表</a></li>

                    <li><a href="/html/index-list.html">热门题解</a></li>

                </ul>


                <ul class="nav navbar-nav navbar-right">

                    <li class="dropdown admin">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">管理员<span class="caret"></span></a>
                        <ul class="dropdown-menu">
                            <li><a href="/html/admin-question-add.html">题目发布</a></li>
                            <li><a href="/html/admin-question-edit.html">题目管理</a></li>
                            <li><a href="/html/admin-label.html">分类管理</a></li>
                            <li><a href="/html/admin-users-edit.html">用户管理</a></li>
                        </ul>
                    </li>
                    <li class="dropdown teacher">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">教师<span class="caret"></span></a>
                        <ul class="dropdown-menu">
                            <li><a href="/html/admin-question-add.html">题目发布</a></li>

                            <li><a href="/html/admin-label.html">分类管理</a></li>

                        </ul>
                    </li>
                    <li class="userlogin">
                        <a style="color: #64BF68;" href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">登录</span></a>
                        <!-- <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">个人中心<span class="caret"></span></a>
                <ul class="dropdown-menu">
                    <li><a href="#">题目发布</a></li>
                    <li><a href="#">题目管理</a></li>
                    <li><a href="#">分类管理</a></li>
                    <li><a href="#">用户管理</a></li>
                </ul> -->
                    </li>
                </ul>
            </div>
            <!-- /.navbar-collapse -->
        </div>
        <!-- /.container-fluid -->
    </nav>



    <nav class="navbar navbar-default  auto">
        <div class="container-fluid">
            <!-- Brand and toggle get grouped for better mobile display -->


            <!-- Collect the nav links, forms, and other content for toggling -->
            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                <ul class="nav navbar-nav">
                    <li><a href="/html/user-index.html">个人信息</a></li>
                    <li><a href="/html/user-list.html">我的题解</a></li>
                    <li class="active"><a href="/html/detail-add.html">发布题解</a></li>

                </ul>

            </div>
            <!-- /.navbar-collapse -->
        </div>
        <!-- /.container-fluid -->
    </nav>



    <div class=" auto .container">
        <div class="row ">
            <div id="formBox"></div>
            <div class="col-md-4 user-edit_right">

                <div class="col-xs-12 white">
                    <h1 style="text-align:center;">Markdown Guide</h1>
                    <h4>Emphasis</h4>
                    <pre>**<strong>bold</strong>**
                    *<em>italics</em>*
                    ~~<strike>strikethrough</strike>~~</pre>
                    <h4>Headers</h4>
                    <pre># Big header
                    ## Medium header
                    ### Small header
                    #### Tiny header</pre>
                    <h4>Lists</h4>
                    <pre>* Generic list item
                    * Generic list item
                    * Generic list item
                    
                    1. Numbered list item
                    2. Numbered list item
                    3. Numbered list item</pre>
                    <h4>Links</h4>
                    <pre>[Text to display](http://www.example.com)</pre>
                    <h4>Quotes</h4>
                    <pre>&gt; This is a quote.
                    &gt; It can span multiple lines!</pre>
                    <h4>Images &nbsp; <small>Need to upload an image? <a href="https://imgur.com/" target="_blank">Imgur</a> has a great interface.</small></h4>
                    <pre>![](http://www.example.com/image.jpg)</pre>
                    <h4>Tables</h4>
                    <pre>
                    | Column 1 | Column 2 | Column 3 |
                    | -------- | -------- | -------- |
                    | John     | Doe      | Male     |
                    | Mary     | Smith    | Female   |
                    
                    <em>Or without aligning the columns...</em>
                    
                    | Column 1 | Column 2 | Column 3 |
                    | -------- | -------- | -------- |
                    | John | Doe | Male |
                    | Mary | Smith | Female |
                    </pre>
                    <h4>Displaying code</h4>
                    <pre>`var example = "hello!";`
                    
                    <em>Or spanning multiple lines...</em>
                    
                    ```
                    var example = "hello!";
                    alert(example);
                    ```</pre>
                    <footer>Provided for use with <a href="https://sparksuite.github.io/simplemde-markdown-editor" target="_blank">SimpleMDE</a></footer>
                </div>
            </div>
        </div>
    </div>
    <!-- fontAwesome -->
    <link rel="stylesheet" href="../makedown/assets/vendors/font-awesome/css/font-awesome.min.css">

    <!-- editor -->
    <link href="https://cdn.bootcss.com/simplemde/1.11.2/simplemde.min.css" rel="stylesheet">
    <script src="https://cdn.bootcss.com/simplemde/1.11.2/simplemde.min.js"></script>

    <!-- highlight -->
    <script src="https://cdn.bootcss.com/highlight.js/9.18.1/highlight.min.js"></script>
    <link href="https://cdn.bootcss.com/highlight.js/9.18.1/styles/solarized-dark.min.css" rel="stylesheet">

    <!-- imgUpload -->
    <script src="../makedown/assets/vendors/InlineAttachment-master/dist/inline-attachment.min.js"></script>
    <script src="../makedown/assets/vendors/InlineAttachment-master/dist/codemirror-4.inline-attachment.min.js"></script>

    <!-- createEditor -->
    <script src="../makedown/assets/js/createEdtior.js"></script>
    <script>
        NProgress.done()
    </script>
    <!-- 新建 -->
    <script type="text/html" id="createTpl">
        <form class=" col-md-8 user-edit" id="createform">
            <div class="info" style='text-align:center;background-color:#f2dede;'></div>

            <!-- <div class="form-group" style="text-align: center; width: 100%;">
                <img class=".img-responsive .center-block img-thumbnail" style="width: 80%;" src="../images/placeholder.png" alt="...">

            </div>


            <div class="form-group">
                <label for="exampleInputFile">上传封面</label>

                <input type="file" id="exampleInputFile">

            </div> -->
            <div class="form-group">
                <label for="exampleInputFile">题号</label>

                <input id="questionId" name="id" type="name" class="form-control" placeholder="请输入题目">

            </div>
            <div class="form-group">
                <label for="exampleInputFile">标题</label>

                <input name="title" type="name" class="form-control" id="titleBox" placeholder="请输入题目">

            </div>

            <div class="form-group">
                <label>内容</label>
                <textarea name="content" class="form-control" id="editor"></textarea>
            </div>
            <button style="background-color: #64BF68;border-radius: 4px;color: #fff;" type="submit" class="btn btn-default">保存</button>
        </form>
    </script>
    <!-- 修改 -->
    <script type="text/html" id="modifyTpl">
        <form class=" col-md-8 user-edit" id="modifyform">
            <div class="info" style='text-align:center;background-color:#f2dede;'></div>

            <!-- <div class="form-group" style="text-align: center; width: 100%;">
                <img class=".img-responsive .center-block img-thumbnail" style="width: 80%;" src="../images/placeholder.png" alt="...">

            </div>


            <div class="form-group">
                <label for="exampleInputFile">上传封面</label>

                <input type="file" id="exampleInputFile">

            </div> -->
            <div class="form-group">
                <label for="exampleInputFile">题号</label>

                <input value='{{answer.question._id}}' id="questionId" name="id" type="name" class="form-control" placeholder="请输入题目">

            </div>
            <div class="form-group">
                <label for="exampleInputFile">标题</label>

                <input value='{{answer.title}}' name="title" type="name" class="form-control" id="titleBox" placeholder="请输入题目">

            </div>

            <div class="form-group">
                <label>内容</label>
                <textarea name="content" class="form-control" id="editor"></textarea>
            </div>
            <button style="background-color: #64BF68;border-radius: 4px;color: #fff;" type="submit" class="btn btn-default">保存</button>
        </form>
    </script>
    <script src="../js/index-head.js"></script>
    <script src="../js/detail-add.js"></script>
</body>

</html>